package priv.dajie.tzzq.spider.csgo;

import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * @ClassName CsgoInfo
 * @Description
 * @Author dajie
 * @Date 2019/11/9 12:45 上午
 * @Version V1.0
 **/
public class SpiderInfos {

//    private Map<SpiderInfoElement, String> elementStringMap;
    private BlockingQueue<SpiderInfoElement> queue;

    public SpiderInfos(List<SpiderInfoElement> spiderInfoElements){
        queue = new LinkedBlockingQueue<>();
        queue.addAll(spiderInfoElements);
    }

    public SpiderInfoElement getSpiderInfoElement(){
        return queue.poll();
    }

    public boolean isEmpty(){
        return queue.isEmpty();
    }

    public int getSize(){
        return queue.size();
    }

}
